package com.zhongkai.model3;

import javax.persistence.*;
import java.io.Serializable;
import java.util.Objects;

@Entity
@Table(name = "status_get",    catalog = "")
public class StatusGet implements Serializable {
    private Integer id;
    private String getName;

    @Id
    @Column(name = "id")
    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    @Basic
    @Column(name = "get_name")
    public String getGetName() {
        return getName;
    }

    public void setGetName(String getName) {
        this.getName = getName;
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;
        StatusGet statusGet = (StatusGet) o;
        return Objects.equals(id, statusGet.id) &&
                Objects.equals(getName, statusGet.getName);
    }

    @Override
    public int hashCode() {

        return Objects.hash(id, getName);
    }
}
